package com.savvy.hibernate;

import com.savvy.exception.CodeException;

public class HibernateException extends CodeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9087903037748470476L;

	public static final int EXOK = 0;
	public static final int EXNOHANDLE = -1;
	public static final int EXINVALID = -2;
	public static final int EXUNAVAILABLE = -3;
	public static final int EXAGAIN = -4;
	public static final int EXNOSUPPORT = -5;

	public HibernateException(String message) {
		super(message);
	}

	public HibernateException(Throwable cause) {
		super(cause);
	}

	public HibernateException(int code) {
		super(code);
	}

	public HibernateException(String message, Throwable cause) {
		super(message, cause);
	}

	public HibernateException(String message, int code) {
		super(message, code);
	}

	public HibernateException(Throwable cause, int code) {
		super(cause, code);
	}

	public HibernateException(String message, Throwable cause, int code) {
		super(message, cause, code);
	}

}
